<!-- !Main -->
<div id="main" class="sidebar-right"><!-- class="sidebar-none", class="sidebar-left", class="sidebar-right" -->

    <div class="wf-wrap">
        <div class="wf-container-main">

            <!-- !- Content -->
            <div id="content" role="main" class="content">                    

                <h1><?php echo $cat ? $cat->name : 'Bản tin Giặt Là Vui'?></h1>
                <div class="hr-breadcrumbs divider-heder">
                    <div class="assistive-text">You are here:</div>
                    <ol class="breadcrumbs wf-td text-small flat">
                        <li><a href="<?php echo $this->baseUrl?>">Home</a></li>
                        <li><a href="<?php echo $cat ? $cat->url : $this->createUrl('/web/post/index')?>"><?php echo $cat ? $cat->name : 'Bản tin Giặt Là Vui'?></a></li>
                    </ol>
                </div>


                <?php $this->widget('zii.widgets.CListView', array(
                        'dataProvider'=>$dataProvider,     
                        'itemView'=>'//web/post/_view' . ($cat ? '_medium' : ''),
                        'id'=>'post-items',
                        'template' => "{items}",
                        'itemsCssClass' => 'wf-container iso-container', //iso-container 
                        //                            'emptyText' => 'Không có bài viết nào được tìm thấy !',
                        'enablePagination'=>false,
                        'ajaxUpdate'=>false,

                        'pagerCssClass' => 'pagination',
                        'pager' => Array(
                            'id'=>'',
                            'internalPageCssClass'=>'',
                            'cssFile'=>'', 
                            'header'=>'',
                            'hiddenPageCssClass'=>'hidden',
                            'selectedPageCssClass'=>'active',
                            'maxButtonCount'=>5,
                            'nextPageLabel'=>'Next ›',
                            'prevPageLabel'=>'‹ Previous',
                            'lastPageLabel'=>'Last ››',
                            'firstPageLabel'=>'‹‹ First',
                        ),   
                    ));?>


                
                <div class="pagination">
                <?php $this->widget('CLinkPager', array(
                        'currentPage'=>$pagination->currentPage,
                        'itemCount'=>$pagination->itemCount,
                        'pageSize'=>$pagination->pageSize,
                        'id'=> null,
//                        'htmlOptions' => array(
//                            'class' => 'pagination',
//                        ),
                        'internalPageCssClass'=>'',
                        'cssFile'=>'', 
                        'header'=>'',
                        'hiddenPageCssClass'=>'hidden',
                        'selectedPageCssClass'=>'active',
                        'maxButtonCount'=>5,
                        'nextPageLabel'=>'Next ›',
                        'prevPageLabel'=>'‹ Previous',
                        'lastPageLabel'=>'Last ››',
                        'firstPageLabel'=>'‹‹ First',
                    ));?>
                </div>


            </div><!-- #content -->


            <?php $this->renderPartial('//common/sidebar');?>

        </div><!-- .wf-container -->
    </div><!-- .wf-wrap -->
</div><!-- #main -->
